<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class LokasisTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Lokasi::create([
				'tipe_id'    => $faker->numberBetween($min = 1, $max = 9),
				'nama'       => $faker->city,
				'alamat'     => $faker->address,
				'lat_lng'    => '-8.4342424242|115.232323',
				'zoom'       => 12,
				'keterangan' => $faker->sentence($nbWords = 6),
				'action'     => 1
			]);
		}
	}

}